//
//  LVEmotionLabel.h
//  BaiduTravel
//
//  Created by chen jiedan on 13-8-30.
//  Copyright (c) 2013年 Baidu.com. All rights reserved.
//

#import <UIKit/UIKit.h>

//
typedef enum {
    LVEmotionDataItem_EmotionImage = 0,
    LVEmotionDataItem_Text      =1
}LVEmotionDataType;

#define kLeftQuote @"[quote-left]"
#define kRightQuote @"[quote-right]"

@interface LVEmotionDataItem : NSObject
@property (nonatomic, assign) LVEmotionDataType dataType;
@property (nonatomic, copy)   NSString          *content;
@property (nonatomic, assign) NSInteger         lineNumber;
@property (nonatomic, assign) CGFloat           itemHeight;
@property (nonatomic, assign) CGRect            contentFrame;

@end


@interface LVEmotionLabel : UIView{
    NSString *_emotionContext;
}

@property (nonatomic, retain) UIFont   *emotionTextFont;
@property (nonatomic, retain) UIColor  *emotionTextColor;

@property (nonatomic, copy) NSString *emotionContext; //在设置文本内容之前，请先设置好 字体和颜色

+ (CGFloat ) labelHeightForEmotionStr:(NSString *)emotionContext withWidth:(CGFloat)width withFont:(UIFont *)emotionFont;

@end
